﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace HYRevitCode.ElementFilterUtility
{
	public class ColumnFilter : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			bool flag = typeof(FamilyInstance) == elem.GetType();
            BuiltInCategory integerValue = (BuiltInCategory)elem.Category.Id.IntegerValue;
            bool flag2 = (int)integerValue == -2000100 || (int)integerValue == -2001330;
			return flag && flag2;
		}

		public bool AllowReference(Reference reference, XYZ pos)
		{
			return false;
		}
	}
}
